//
//  YXFeedbackView.m
//  跑跑快销
//
//  Created by 杨潇 on 14-5-4.
//  Copyright (c) 2014年 ylife. All rights reserved.
//

#import "YXFeedbackView.h"

@implementation YXFeedbackView
@synthesize textVi,placeholderLab;

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code
        self.backgroundColor = [UIColor grayColor];
        
        textVi = [[UITextView alloc] initWithFrame:CGRectMake(10, 10, 300, 180)];
        textVi.font = [UIFont systemFontOfSize:16];
        [self addSubview:textVi];
        
        placeholderLab = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 300, 50)];
        placeholderLab.text = @"如果你有什么好的建议，欢迎你反馈给我们，跑跑快销的成长离不开你的支持。";
        placeholderLab.textAlignment = NSTextAlignmentLeft;
        placeholderLab.font = [UIFont systemFontOfSize:16];
        placeholderLab.textColor = [UIColor lightGrayColor];
        placeholderLab.numberOfLines = 0;
        placeholderLab.lineBreakMode = NSLineBreakByWordWrapping;
        [textVi addSubview:placeholderLab];
    }
    return self;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect
{
    // Drawing code
}
*/

@end
